package cn.iocoder.yudao.module.erp.controller.admin.purchaseplan.vo.purchasematerialdetail;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 物料采购计划明细新增/修改 Request VO")
@Data
public class PurchaseMaterialDetailSaveReqVO {

    @Schema(description = "采购详情ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6488")
    private Long id;

    @Schema(description = "采购计划ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "21749")
    @NotNull(message = "采购计划ID不能为空")
    private Long planId;

    @Schema(description = "采购计划编号(系统自动生成)")
    private String planNo;

    @Schema(description = "采购类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "SERVICE/EQUIPMENT/ENGINEERING/MATERIAL/DIRECT/MINOR")
    @NotEmpty(message = "采购类型不能为空")
    private String purchaseType;

    @Schema(description = "物料编码（NC编码）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "物料编码（NC编码）不能为空")
    private String materialCode;

    @Schema(description = "物料名称（与NC编码中对应上）", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "物料名称（与NC编码中对应上）不能为空")
    private String materialName;

    @Schema(description = "单位")
    private String unit;

    @Schema(description = "规格(产品的最小包装规格)")
    private String specification;

    @Schema(description = "物料/收货标准")
    private String acceptanceStandard;

    @Schema(description = "产品要求或参考品牌")
    private String brandRequirements;

    @Schema(description = "送货/产品外包装要求")
    private String packagingRequirements;

    @Schema(description = "预估采购数量（年用量）")
    private BigDecimal estimatedQuantity;

    @Schema(description = "预估单价/限价（元/含税）", example = "12715")
    private BigDecimal estimatedUnitPrice;

    @Schema(description = "合计")
    private BigDecimal totalAmount;

    @Schema(description = "备注", example = "随便")
    private String remark;

}